import App from './App';
import uView from '@/uni_modules/uview-ui'; // 导入uView UI 插件
Vue.use(uView); // 全局使用uView
//  1.先在全局引入
import debounce from "@/common/debounce"

// #ifndef VUE3
import Vue from 'vue';
import store from './store';
Vue.config.productionTip = false;
Vue.prototype.$store = store;
App.mpType = 'app';
//  2.再挂载在全局
Vue.prototype.$debounce = debounce;
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
